﻿@{
    Layout = null;
}

<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="zh" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    @Html.Partial("_Title")
    @Html.Raw(ViewBag.CssFile)
</head>
<body class="fixed-top">
    @Html.Partial("_Top")
    <div id="container" class="row-fluid @ViewBag.MenuStatus">
        @Html.Partial("_LeftMenu")
        <div id="body">
            <div id="widget-config" class="modal hide">
                <div class="modal-header">
                    <button data-dismiss="modal" class="close" type="button"></button>
                    <h3>widget Settings</h3>
                </div>
                <div class="modal-body">
                    <p>Here will be a configuration form</p>
                </div>
            </div>
            <div class="container-fluid">
                <div class="row-fluid">
                    <div class="span12">
                        @Html.Raw(ViewBag.NavMenu)
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span12">
                        <div class="widget box light-grey">
                            <div class="widget-title">
                                <h4><i class="icon-globe"></i>入库单管理</h4>
                                <div class="tools">
                                    <a href="javascript:;" class="collapse"></a>
                                    <a href="#widget-config" data-toggle="modal" class="config"></a>
                                    <a href="javascript:;" class="reload"></a>
                                    <a href="javascript:;" class="remove"></a>
                                </div>
                            </div>
                            <div class="widget-body">
                                <div class="clearfix margin-bottom-10">
                                    <div class="btn-group" id="btnStatusGroup">
                                        <button class="btn disabled" value="0">所有</button>
                                        <button class="btn" value="1">待审核</button>
                                        <button class="btn" value="2">审核通过</button>
                                        <button class="btn" value="3">审核失败</button>
                                    </div>

                                    <div class="actions  pull-right">
                                        <a class="btn btn-primary" href="/InStorage/Product/Add"><i class="icon-pencil"></i>&nbsp;新增</a>
                                        <a class="btn btn-danger" href="javascript:void(0)" onclick="InStorageManager.DeleteBatch()"><i class="icon-trash"></i>&nbsp;删除</a>
                                        <a class="btn btn-info" href="javascript:void(0)" onclick="InStorageManager.ToExcel()"><i class="icon-download"></i>&nbsp;导出</a>
                                    </div>
                                </div>

                                <div class="row-fluid">
                                    <form class="form-horizontal" action="javascript:void(0)">
                                        <div class="control-group">
                                            <div class="controls controls-cus">
                                                <input type="hidden" id="txtReprtNum" name="txtReportNum" value="@ViewBag.ReportNum"/>
                                                <input id="txtOrderNum" name="txtOrderNum" type="text" class="input-medium" placeholder="请输入入库单号"  />&nbsp;&nbsp;
                                                时间&nbsp;<input id="txtBeginTime" name="txtBeginTime" type="text" class="input-medium" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
                                                -<input id="txtEndTime" name="txtEndTime" type="text" class="input-medium" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>&nbsp;&nbsp;
                                                <a id="gritter-remove-all" class="btn btn-info" href="javascript:void(0)" onclick="InStorageManager.PageClick(1,10)"><i class="icon-search"></i>&nbsp;搜索</a>
                                                <div class="btn-group">
                                                    <button id="btnHSearch" data-toggle="dropdown" class="btn btn-primary dropdown-toggle">高级搜索 <span class="caret"></span></button>
                                                </div>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <div id="divHSearch" class="row-fluid hide">
                                    <div class="widget">
                                        <div class="widget-body form">
                                            <form class="horizontal-form" action="javascript:void(0)">
                                                <div class="row-fluid">
                                                    
                                                    <div class="span2">
                                                        <div class="control-group">
                                                            <label for="firstName" class="control-label">供应商</label>
                                                            <div class="controls">
                                                                <input id="txtSupplier" name="txtSupplier" type="text" class="input-medium" />
                                                                <span class="help-block"></span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    
                                                    <div class="span2">
                                                        <div class="control-group">
                                                            <label for="firstName" class="control-label">单据类型</label>
                                                            <div class="controls">
                                                                <select id="ddlInType" name="ddlInType" class="input-medium">@Html.Raw(ViewBag.InType)</select>
                                                                <span class="help-block"></span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="span2">
                                                        <div class="control-group">
                                                            <label for="firstName" class="control-label">关联单号</label>
                                                            <div class="controls">
                                                                <input id="txtPlanNum" name="txtPlanNum" type="text" class="input-medium" />
                                                                <span class="help-block"></span>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="span2">
                                                        <div class="control-group">
                                                            <label for="firstName" class="control-label">&nbsp;&nbsp;</label>
                                                            <a class="btn btn-info" href="javascript:void(0)" onclick="InStorageManager.PageClick(1,10)"><i class="icon-search"></i>&nbsp;搜索</a>
                                                        </div>
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>

                                <table class="table table-striped table-bordered table-hover" id="tabInfo">
                                    <thead>
                                        <tr class="widget-title">
                                            <th style="width: 8px;"><input type="checkbox" class="group-checkable" onclick="InStorageManager.SelectAll(this)" /></th>
                                            <th class="hidden-480">入库单号</th>
                                            <th class="hidden-480">入库类型</th>
                                            <th class="hidden-480">供应商</th>
                                            <th class="hidden-480">关联单号</th>
                                            <th class="hidden-480">货品总数</th>
                                            <th class="hidden-480">总金额</th>
                                            <th class="hidden-480">状态</th>
                                            <th class="hidden-480">制单人</th>
                                            <th class="hidden-480">操作方式</th>
                                            <th class="hidden-480">创建时间</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                                <div class="row-fluid" id="mypager">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @Html.Partial("_Foot")
    <script type="text/javascript">
        $(document).ready(function () {
            InStorageManager.PageClick(1, 10);
            InStorageManager.TabClick();
            InStorageManager.SearchEvent();
            $("#txtOrderNum,#txtSupplier,#txtPlanNum").keydown(function (e) {
                if (e.keyCode == 13) {
                    InStorageManager.PageClick(1, 10);
                }
            });
        });
    </script>
</body>

</html>
